.header {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 60px;
    line-height: 60px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: rgba(0, 0, 0, 0.6) 0px 7px 8px -5px;
    transition: transform 0.8s ease-in-out 0s, opacity 0.8s ease-in-out 0s;
    opacity: 1;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transition: top .5s;

    .logo {
        position: relative;
        font-size: 32px;
        color: #eee;
        cursor: pointer;

        &::before {
            content: "Reaper's blog";
            position: absolute;
            color: transparent;
            background-image: linear-gradient(to right, #bfcb44, #eeaaa5,
                    #585eaa, #ed1941, #7fb80e, #f26522, #ffc20e, #7c8577, #009ad6, #65c294, #f47920, #f15b6c);
            // background:#fff;
            background-clip: text;
            -webkit-background-clip: text;
            clip-path: polygon(0% 0%, 20% 0%, -10% 120%, -30% 120%);
            animation: light 3s ease-in-out .5s infinite;
        }

        @keyframes light {
            0% {
                clip-path: polygon(0% 0%, 20% 0%, -10% 120%, -30% 120%);
            }

            50% {
                clip-path: polygon(100% 0%, 120% 0%, 120% 120%, 100% 120%);
            }

            100% {
                clip-path: polygon(0% 0%, 20% 0%, -10% 120%, -30% 120%);
            }
        }
    }

    nav {
        span {
            color: #eee;
            margin: 0 30px;
            cursor: pointer;
            transition: color .5s;

            &:hover {
                color: pink;
            }
        }
    }

}

.goTop {
    position: fixed;
    bottom: 100px;
    right: 100px;
    cursor: pointer;

    i {
        font-size: 60px;
        color: pink;

    }

    div {
        opacity: 0;
        color: pink;
        transition: opacity;
    }

    &:hover {
        animation: btnshow 1s infinite;

        div {
            opacity: 1;
        }
    }

}

@keyframes btnshow {
    0% {
        opacity: .8;
        bottom: 100px;
    }

    50% {
        opacity: .3;
        bottom: 120px;
    }

    100% {
        opacity: .8;
        bottom: 100px;
    }
}



@media screen and (max-width: 750px) {
    .header {
        padding: 0 10px;
        .logo {
            font-size: 20px;
    
        }
    
        nav {
            span {
                margin: 0 10px;
                &:nth-last-child(1){
                    display: none;
                }
            }
        }
    
    }
    
    .goTop {
        display: none;
    
    }
}